package org.csu.petserver.web;

import org.csu.petserver.domain.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.ui.Model;
@Controller
public class testController {
    @GetMapping("login")
    public String login(){
        return "login";
    }

    @GetMapping("home")
    public String home(Model model){
        User user = new User();
        user.setId("test");
        user.setPassword("123");
        model.addAttribute("user", user);
        return "home";
    }
    @GetMapping("test")
    public String test(){
        return "test";
    }
    @GetMapping("product")
    public String product(){
        return "product";
    }


}
